package com.tedu.boot2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;

//扫描cotroller目录
@ComponentScan(value = "com.tedu.cotroller")

//用来标识着这个类，是可以作为springboot快速启动类
@SpringBootApplication


//springboot的要求，才能使用servlet类
@ServletComponentScan(value = "com.tedu.cotroller")

@Controller
public class Boot2Application {

    //启动指定的类--并指定了类的class对象
    public static void main(String[] args) {
        SpringApplication.run(Boot2Application.class, args);
    }

}
